Optimal. Leaf size=241 \[ -\frac {2 d x \left (1-c^2 x^2\right )^{3/2}}{b c \sqrt {a+b \text {ArcSin}(c x)}}+\frac {d \sqrt {\frac {\pi }{2}} \cos \left (\frac {4 a}{b}\right ) \text {FresnelC}\left (\frac {2 \sqrt {\frac {2}{\pi }} \sqrt {a+b \text {ArcSin}(c x)}}{\sqrt {b}}\right )}{b^{3/2} c^2}+\frac {d \sqrt {\pi } \cos \left (\frac {2 a}{b}\right ) \text {FresnelC}\left (\frac {2 \sqrt {a+b \text {ArcSin}(c x)}}{\sqrt {b} \sqrt {\pi }}\right )}{b^{3/2} c^2}+\frac {d \sqrt {\pi } S\left (\frac {2 \sqrt {a+b \text {ArcSin}(c x)}}{\sqrt {b} \sqrt {\pi }}\right ) \sin \left (\frac {2 a}{b}\right )}{b^{3/2} c^2}+\frac {d \sqrt {\frac {\pi }{2}} S\left (\frac {2 \sqrt {\frac {2}{\pi }} \sqrt {a+b \text {ArcSin}(c x)}}{\sqrt {b}}\right ) \sin \left (\frac {4 a}{b}\right )}{b^{3/2} c^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.45, antiderivative size = 241, normalized size of antiderivative = 1.00, number of steps
used = 17, number of rules used = 10, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {4799, 4753,
3393, 3387, 3386, 3432, 3385, 3433, 4809, 4491} \begin {gather*} \frac {\sqrt {\frac {\pi }{2}} d \cos \left (\frac {4 a}{b}\right ) \text {FresnelC}\left (\frac {2 \sqrt {\frac {2}{\pi }} \sqrt {a+b \text {ArcSin}(c x)}}{\sqrt {b}}\right )}{b^{3/2} c^2}+\frac {\sqrt {\pi } d \cos \left (\frac {2 a}{b}\right ) \text {FresnelC}\left (\frac {2 \sqrt {a+b \text {ArcSin}(c x)}}{\sqrt {\pi } \sqrt {b}}\right )}{b^{3/2} c^2}+\frac {\sqrt {\pi } d \sin \left (\frac {2 a}{b}\right ) S\left (\frac {2 \sqrt {a+b \text {ArcSin}(c x)}}{\sqrt {b} \sqrt {\pi }}\right )}{b^{3/2} c^2}+\frac {\sqrt {\frac {\pi }{2}} d \sin \left (\frac {4 a}{b}\right ) S\left (\frac {2 \sqrt {\frac {2}{\pi }} \sqrt {a+b \text {ArcSin}(c x)}}{\sqrt {b}}\right )}{b^{3/2} c^2}-\frac {2 d x \left (1-c^2 x^2\right )^{3/2}}{b c \sqrt {a+b \text {ArcSin}(c x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3385
Rule 3386
Rule 3387
Rule 3393
Rule 3432
Rule 3433
Rule 4491
Rule 4753
Rule 4799
Rule 4809
Rubi steps
\begin {align*} \int \frac {x \left (d-c^2 d x^2\right )}{\left (a+b \sin ^{-1}(c x)\right )^{3/2}} \, dx &=-\frac {2 d x \left (1-c^2 x^2\right )^{3/2}}{b c \sqrt {a+b \sin ^{-1}(c x)}}+\frac {(2 d) \int \frac {\sqrt {1-c^2 x^2}}{\sqrt {a+b \sin ^{-1}(c x)}} \, dx}{b c}-\frac {(8 c d) \int \frac {x^2 \sqrt {1-c^2 x^2}}{\sqrt {a+b \sin ^{-1}(c x)}} \, dx}{b}\\ &=-\frac {2 d x \left (1-c^2 x^2\right )^{3/2}}{b c \sqrt {a+b \sin ^{-1}(c x)}}+\frac {(2 d) \text {Subst}\left (\int \frac {\cos ^2(x)}{\sqrt {a+b x}} \, dx,x,\sin ^{-1}(c x)\right )}{b c^2}-\frac {(8 d) \text {Subst}\left (\int \frac {\cos ^2(x) \sin ^2(x)}{\sqrt {a+b x}} \, dx,x,\sin ^{-1}(c x)\right )}{b c^2}\\ &=-\frac {2 d x \left (1-c^2 x^2\right )^{3/2}}{b c \sqrt {a+b \sin ^{-1}(c x)}}+\frac {(2 d) \text {Subst}\left (\int \left (\frac {1}{2 \sqrt {a+b x}}+\frac {\cos (2 x)}{2 \sqrt {a+b x}}\right ) \, dx,x,\sin ^{-1}(c x)\right )}{b c^2}-\frac {(8 d) \text {Subst}\left (\int \left (\frac {1}{8 \sqrt {a+b x}}-\frac {\cos (4 x)}{8 \sqrt {a+b x}}\right ) \, dx,x,\sin ^{-1}(c x)\right )}{b c^2}\\ &=-\frac {2 d x \left (1-c^2 x^2\right )^{3/2}}{b c \sqrt {a+b \sin ^{-1}(c x)}}+\frac {d \text {Subst}\left (\int \frac {\cos (2 x)}{\sqrt {a+b x}} \, dx,x,\sin ^{-1}(c x)\right )}{b c^2}+\frac {d \text {Subst}\left (\int \frac {\cos (4 x)}{\sqrt {a+b x}} \, dx,x,\sin ^{-1}(c x)\right )}{b c^2}\\ &=-\frac {2 d x \left (1-c^2 x^2\right )^{3/2}}{b c \sqrt {a+b \sin ^{-1}(c x)}}+\frac {\left (d \cos \left (\frac {2 a}{b}\right )\right ) \text {Subst}\left (\int \frac {\cos \left (\frac {2 a}{b}+2 x\right )}{\sqrt {a+b x}} \, dx,x,\sin ^{-1}(c x)\right )}{b c^2}+\frac {\left (d \cos \left (\frac {4 a}{b}\right )\right ) \text {Subst}\left (\int \frac {\cos \left (\frac {4 a}{b}+4 x\right )}{\sqrt {a+b x}} \, dx,x,\sin ^{-1}(c x)\right )}{b c^2}+\frac {\left (d \sin \left (\frac {2 a}{b}\right )\right ) \text {Subst}\left (\int \frac {\sin \left (\frac {2 a}{b}+2 x\right )}{\sqrt {a+b x}} \, dx,x,\sin ^{-1}(c x)\right )}{b c^2}+\frac {\left (d \sin \left (\frac {4 a}{b}\right )\right ) \text {Subst}\left (\int \frac {\sin \left (\frac {4 a}{b}+4 x\right )}{\sqrt {a+b x}} \, dx,x,\sin ^{-1}(c x)\right )}{b c^2}\\ &=-\frac {2 d x \left (1-c^2 x^2\right )^{3/2}}{b c \sqrt {a+b \sin ^{-1}(c x)}}+\frac {\left (2 d \cos \left (\frac {2 a}{b}\right )\right ) \text {Subst}\left (\int \cos \left (\frac {2 x^2}{b}\right ) \, dx,x,\sqrt {a+b \sin ^{-1}(c x)}\right )}{b^2 c^2}+\frac {\left (2 d \cos \left (\frac {4 a}{b}\right )\right ) \text {Subst}\left (\int \cos \left (\frac {4 x^2}{b}\right ) \, dx,x,\sqrt {a+b \sin ^{-1}(c x)}\right )}{b^2 c^2}+\frac {\left (2 d \sin \left (\frac {2 a}{b}\right )\right ) \text {Subst}\left (\int \sin \left (\frac {2 x^2}{b}\right ) \, dx,x,\sqrt {a+b \sin ^{-1}(c x)}\right )}{b^2 c^2}+\frac {\left (2 d \sin \left (\frac {4 a}{b}\right )\right ) \text {Subst}\left (\int \sin \left (\frac {4 x^2}{b}\right ) \, dx,x,\sqrt {a+b \sin ^{-1}(c x)}\right )}{b^2 c^2}\\ &=-\frac {2 d x \left (1-c^2 x^2\right )^{3/2}}{b c \sqrt {a+b \sin ^{-1}(c x)}}+\frac {d \sqrt {\frac {\pi }{2}} \cos \left (\frac {4 a}{b}\right ) C\left (\frac {2 \sqrt {\frac {2}{\pi }} \sqrt {a+b \sin ^{-1}(c x)}}{\sqrt {b}}\right )}{b^{3/2} c^2}+\frac {d \sqrt {\pi } \cos \left (\frac {2 a}{b}\right ) C\left (\frac {2 \sqrt {a+b \sin ^{-1}(c x)}}{\sqrt {b} \sqrt {\pi }}\right )}{b^{3/2} c^2}+\frac {d \sqrt {\pi } S\left (\frac {2 \sqrt {a+b \sin ^{-1}(c x)}}{\sqrt {b} \sqrt {\pi }}\right ) \sin \left (\frac {2 a}{b}\right )}{b^{3/2} c^2}+\frac {d \sqrt {\frac {\pi }{2}} S\left (\frac {2 \sqrt {\frac {2}{\pi }} \sqrt {a+b \sin ^{-1}(c x)}}{\sqrt {b}}\right ) \sin \left (\frac {4 a}{b}\right )}{b^{3/2} c^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 1.49, size = 375, normalized size = 1.56 \begin {gather*} \frac {d \left (8 \left (\frac {1}{b}\right )^{3/2} \sqrt {\pi } \cos \left (\frac {2 a}{b}\right ) \text {FresnelC}\left (\frac {2 \sqrt {\frac {1}{b}} \sqrt {a+b \text {ArcSin}(c x)}}{\sqrt {\pi }}\right )+8 \left (\frac {1}{b}\right )^{3/2} \sqrt {\pi } S\left (\frac {2 \sqrt {\frac {1}{b}} \sqrt {a+b \text {ArcSin}(c x)}}{\sqrt {\pi }}\right ) \sin \left (\frac {2 a}{b}\right )+\frac {i e^{-\frac {4 i a}{b}} \left (\sqrt {2} e^{\frac {2 i a}{b}} \sqrt {-\frac {i (a+b \text {ArcSin}(c x))}{b}} \text {Gamma}\left (\frac {1}{2},-\frac {2 i (a+b \text {ArcSin}(c x))}{b}\right )-\sqrt {2} e^{\frac {6 i a}{b}} \sqrt {\frac {i (a+b \text {ArcSin}(c x))}{b}} \text {Gamma}\left (\frac {1}{2},\frac {2 i (a+b \text {ArcSin}(c x))}{b}\right )-\sqrt {-\frac {i (a+b \text {ArcSin}(c x))}{b}} \text {Gamma}\left (\frac {1}{2},-\frac {4 i (a+b \text {ArcSin}(c x))}{b}\right )+e^{\frac {8 i a}{b}} \sqrt {\frac {i (a+b \text {ArcSin}(c x))}{b}} \text {Gamma}\left (\frac {1}{2},\frac {4 i (a+b \text {ArcSin}(c x))}{b}\right )+2 i e^{\frac {4 i a}{b}} \sin (2 \text {ArcSin}(c x))+i e^{\frac {4 i a}{b}} \sin (4 \text {ArcSin}(c x))\right )}{b \sqrt {a+b \text {ArcSin}(c x)}}\right )}{4 c^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.23, size = 311, normalized size = 1.29
method | result | size |
default | \(-\frac {d \left (2 \sqrt {-\frac {1}{b}}\, \sqrt {\pi }\, \sqrt {2}\, \sqrt {a +b \arcsin \left (c x \right )}\, \sin \left (\frac {4 a}{b}\right ) \mathrm {S}\left (\frac {2 \sqrt {2}\, \sqrt {a +b \arcsin \left (c x \right )}}{\sqrt {\pi }\, \sqrt {-\frac {1}{b}}\, b}\right )-2 \sqrt {-\frac {1}{b}}\, \sqrt {\pi }\, \sqrt {2}\, \sqrt {a +b \arcsin \left (c x \right )}\, \FresnelC \left (\frac {2 \sqrt {2}\, \sqrt {a +b \arcsin \left (c x \right )}}{\sqrt {\pi }\, \sqrt {-\frac {1}{b}}\, b}\right ) \cos \left (\frac {4 a}{b}\right )-2 \sqrt {a +b \arcsin \left (c x \right )}\, \cos \left (\frac {2 a}{b}\right ) \FresnelC \left (\frac {2 \sqrt {2}\, \sqrt {a +b \arcsin \left (c x \right )}}{\sqrt {\pi }\, \sqrt {-\frac {2}{b}}\, b}\right ) \sqrt {-\frac {2}{b}}\, \sqrt {\pi }\, \sqrt {2}+2 \sqrt {a +b \arcsin \left (c x \right )}\, \sin \left (\frac {2 a}{b}\right ) \mathrm {S}\left (\frac {2 \sqrt {2}\, \sqrt {a +b \arcsin \left (c x \right )}}{\sqrt {\pi }\, \sqrt {-\frac {2}{b}}\, b}\right ) \sqrt {-\frac {2}{b}}\, \sqrt {\pi }\, \sqrt {2}-\sin \left (-\frac {4 \left (a +b \arcsin \left (c x \right )\right )}{b}+\frac {4 a}{b}\right )-2 \sin \left (-\frac {2 \left (a +b \arcsin \left (c x \right )\right )}{b}+\frac {2 a}{b}\right )\right )}{4 c^{2} b \sqrt {a +b \arcsin \left (c x \right )}}\) | \(311\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - d \left (\int \left (- \frac {x}{a \sqrt {a + b \operatorname {asin}{\left (c x \right )}} + b \sqrt {a + b \operatorname {asin}{\left (c x \right )}} \operatorname {asin}{\left (c x \right )}}\right )\, dx + \int \frac {c^{2} x^{3}}{a \sqrt {a + b \operatorname {asin}{\left (c x \right )}} + b \sqrt {a + b \operatorname {asin}{\left (c x \right )}} \operatorname {asin}{\left (c x \right )}}\, dx\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {x\,\left (d-c^2\,d\,x^2\right )}{{\left (a+b\,\mathrm {asin}\left (c\,x\right )\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________